<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
	
	<h:head>
		<title>Endereço</title>
	</h:head>
	
	<h:body>
	 	
	 	
	 	<ui:composition template="/layout/commonLayout.xhtml">
	 		<ui:define name="centro">
	 	
	 	<h:form>
			 	<p:panel header="Endereço">			
			 			            
			    	<p:messages autoUpdate="true"/>
			            
			    		<h:panelGrid columns="2" cellpadding="5" columnClasses="label, value">
			        	
				            <h:outputLabel for="logradouro" value="Logradouro:" style="font-weight:bold"/>
				            <p:inputText id="logradouro" value="#{userWizard.endereco.logradouro}" required="true" label="Logradouro" />
				            	            
				
				            <h:outputLabel for="numeroLogradouro" value="Nº:" style="font-weight:bold"/>
				            <p:inputText id="numeroLogradouro" value="#{userWizard.endereco.numeroLogradouro}" label="Nº" required="false" maxlength="5" size="4">
				               <f:validateLength maximum="5" />
				            </p:inputText>
				           
				           
				            <h:outputLabel for="numeroApartamento" value="Nº Apartamento:" style="font-weight:bold"/>                    
				            <p:inputText id="numeroApartamento" value="#{userWizard.endereco.numeroApartamento}" label="Nº Apartamento" required="false" maxlength="5" size="4">
				               <f:validateLength minimum="2" maximum="3" />
				            </p:inputText>
				           
				           
				            <h:outputLabel for="bairro" value="Bairro:" style="font-weight:bold"/>                    
				            <p:inputText id="bairro" value="#{userWizard.endereco.bairro}" label="Bairro" required="false" />
				            
				            
				            <h:outputLabel for="cep" value="CEP:" style="font-weight:bold"/>                    
				            <p:inputText id="cep" value="#{userWizard.endereco.cep}" label="CEP" required="false" maxlength="9" size="7" />
				           
				           
				            <h:outputLabel for="cidade" value="Cidade" style="font-weight:bold"/>                    
				            <p:inputText id="cidade" value="#{userWizard.endereco.cidade}" label="Cidade" required="true" />
				            
				            
				            <h:outputLabel for="uf" value="UF:" style="font-weight:bold"/>                    
				            <p:inputText id="uf" value="#{userWizard.endereco.uf}" label="UF" required="true" maxlength="3" size="2">
				               <f:validateLength minimum="2" maximum="3" />
				            </p:inputText>
				            
					  	
			        	</h:panelGrid>
			        	
					  	<p:commandButton value="Enviar" icon="ui-icon-check" actionListener="#{userWizard.save}" />
					  	
					</p:panel>
					
	        
	     </h:form>
					
				</ui:define>
			</ui:composition>
	        
	      
	       
	        
	</h:body>
	
</html>